﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Net.Fan.SmallPig.DataAccess;
using System.Data;
using Net.Fan.SmallPig.Common.DBMeta;

public partial class Workflow_CreateDocStep3 : System.Web.UI.Page
{
    long jobId;
    protected void Page_Load(object sender, EventArgs e)
    {
        string j = Request.Params["J"];
        long.TryParse(j, out jobId);

        if (IsPostBack == false)
        {
            DataRow job = JobDA.GetJob(j);
            LabelJobId.Text = job[JobMeta.JobIdField].ToString();
            LabelSummary.Text = job[JobMeta.SummaryField] as string;
            LabelCustomer.Text = job[JobMeta.CustomerField] as string;
            LabelDesc.Text = job[JobMeta.DescriptionField] as string;
            LabelInitState.Text = job[JobMeta.CurrentStateField] as string;
        }
    }
}
